package com.xuecheng.content.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xuecheng.commons.model.vo.ResponseResult;
import com.xuecheng.content.domain.CoursePub;

import java.util.Map;

/**
 * <p>
 * 课程发布 服务类
 * </p>
 *
 * @author itheima
 * @since 2022-09-17
 */
public interface CoursePubService extends IService<CoursePub> {

    //根据课程id，查询预览数据
    Map<String, Object> preview(Long courseBaseId);

    //课程发布
    ResponseResult publish(Long courseBaseId) throws Exception;
}
